package com.xu.base.enums;

import lombok.Getter;

/**
 * 返回编码枚举
 *
 * @Author: 许乾伟
 * @Date: 2023/12/5  16:19
 */
@Getter
public enum ResponseCodeEnum {
    SUCCESS(200,"成功"),
    FAIL(400,"失败"),
    AUTH_FAILED(10001,"认证异常"),
    SERVICE_FAILED(10002,"服务异常"),
    HANDEL_FAILED(10003,"操作异常"),
    DATA_FAILED(10004,"数据异常"),
    PARAM_ERROR(10005, "参数异常");
    private final Integer code;
    private final String desc;

    ResponseCodeEnum(Integer code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
